package com.cdu.ai_intelligent_teaching_and_training_system.entity;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
public class Teacher {
    private Long teacherId;
    
    private Long userId; // 关联User表的外键
    
    @NotBlank(message = "教师姓名不能为空")
    private String name;
    
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;
    
    @NotBlank(message = "密码不能为空")
    private String password;
    
    private String department;
} 